package com.css.devops.component;

import javax.annotation.Resource;

import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.css.devops.service.DevopsApi;

/**
 * 初始化Jenkins或gitlab
 */
@Component
public class DevopsRunner implements ApplicationRunner{

	@Resource(name = "${devops.service.api}")
	private DevopsApi devopsApi;
	
	@Override
	public void run(ApplicationArguments args) throws Exception {
		devopsApi.init();
	}
	
}
